﻿<meta name="viewpoint" content="width=device-width,initial-scale=1.0" charset="UTF-8">
<link href="../css/bootstrap.min.css" rel="stylesheet"/>
<link href="../css/bootstrap-table.min.css" rel="stylesheet"/>
<link href="../css/main.css" rel="stylesheet"/>
<script src="../js/jquery-1.9.1.js"></script>

<div id="reportTableDiv" class="well" style="border:3px solid #d9534f;background-color:#eee">
	<table id="historyMessageInfoTable" data-classes="table table-no-bordered">	
		<thead>
		 	<tr>
		 		<th data-field="state" data-checkbox=true></th>
		 		<th data-align="center"data-valign="middle" data-sortable=true data-field="mid">编号</th>
		 		<th data-formatter="formatDate" data-align="center"data-valign="middle" data-sortable=true data-field="sendTime">发送时间</th>
		 		<th data-align="center"data-valign="middle" data-sortable=true data-field="content">内容</th>
		 	</tr>
		</thead>
	</table>
</div>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootstrap-table.min.js"></script>
<script src="../js/bootstrap-table-zh-CN.min.js"></script>
<script src="../js/common.js"></script>
<script src="../js/ajaxfileupload.js"></script>
<script>
	$(function(){
		$('#historyMessageInfoTable').bootstrapTable({
			//colomns:columns, 
			
			url: "../message.action?op=stuEverSend",
					
			paginationLoop: false,		
			checkboxHeader: true,
			uniqueId: "mid",
			undefinedText: "未填",
			
			cache: false,
			height: 480,
			striped: true,
			pagination: true,
			pageSize: 20,
			pageNumber:1,
			pageList: [10, 20, 50, 100, 200, 500],
			search: true,
			showColumns: true,
			showRefresh: true,
			showToggle: true,
			clickToSelect: true,
			sidePagination: "client",
			
			
			formatNoMatches: function(){
	         	return '无符合条件的记录';
	        }
		});
	});
    //考试状态
    function formatStatus(value,row,index){
        if(value==true){
            return "已考";
        }else{
            return "未考";
        }
    };
    //格式化日期
    function formatDate(value,row,index){
        var time = new Date(value);
        var y = time.getFullYear();//年
        var m = time.getMonth() + 1;//月
        var d = time.getDate();//日
        var h = time.getHours();//时
        var mm = time.getMinutes();//分
        var s = time.getSeconds();//秒
        return y+"-"+m+"-"+d+" "+h+":"+mm+":"+s;
    };
</script>